package cn.enzo.utils.service;

import java.util.List;

public interface ICommonService<T> {

	
	public Integer save(T entity)throws Exception;
	
	public Integer update(T entity)throws Exception;
	
	public Integer deleteBykey(Object key)throws Exception;
	
	public Integer deleteByList(List<String> keylist)throws Exception;
	
	public T selectByKey(Object key)throws Exception;
	
	public List<T> queryByCondition(T entity)throws Exception;
	
}
